﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Ue.Infrastructure.DomainBase;
using Ue.Qcdz.Domain.Shops;

namespace Ue.Qcdz.Domain.SaleCategorys
{
    public class SaleCategory : EntityBase
    {
        public SaleCategory(object key) : base(key) { }

        public string Name { set; get; }
        public string Code { set; get; }
        public string Remark { set; get; }
        public int DisplayOrder { set; get; }
        public int Status { get; set; }
        public Shop Shop { set; get; }

        /// <summary>
        /// 改变状态
        /// </summary>
        public void ChangeStatus()
        {
            this.Status = this.Status == 1 ? 0 : 1;
        }
    }
}
